(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/kp-voice/index" ], {
    "04cf": function(t, e, n) {},
    "1cbd": function(t, e, n) {
        n.r(e);
        var i = n("53a1"), o = n("d35a");
        for (var r in o) "default" !== r && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(r);
        n("b3fb");
        var a = n("f0c5"), c = Object(a.a)(o.default, i.b, i.c, !1, null, "5e84cb7b", null, !1, i.a, void 0);
        e.default = c.exports;
    },
    "3e76": function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = n("26cb"), o = n("db8f");
            function r(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var i = Object.getOwnPropertySymbols(t);
                    e && (i = i.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, i);
                }
                return n;
            }
            function a(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            !function(t) {
                t && t.__esModule;
            }(n("801c"));
            var c = {
                data: function() {
                    return {
                        mainColors: "#F0F0F0",
                        color: "#fff",
                        isShowAudio: !0,
                        sliderValue: 0,
                        innerAudioContext: "",
                        durations: 1,
                        duration: "00:00",
                        recorderManager: ""
                    };
                },
                props: {
                    params: {
                        type: Object,
                        default: function() {
                            return {};
                        }
                    },
                    colorIcon: {
                        type: String,
                        default: "#105CFB"
                    }
                },
                watch: {
                    params: {
                        handler: function(t, e) {
                            this.params = t;
                            var n = Math.ceil(this.params.durition);
                            this.duration = (0, o.formatSeconds)(n), console.log("更新啦");
                        },
                        immediate: !0,
                        deep: !0
                    }
                },
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? r(Object(n), !0).forEach(function(e) {
                            a(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, i.mapGetters)([ "configs", "mainColor", "isIphone" ])),
                created: function() {
                    var e = this, n = this;
                    this.isIphone ? (this.recorderManager = t.getRecorderManager(), this.innerAudioContext = t.createInnerAudioContext(), 
                    this.innerAudioContext.autoplay = !0, this.innerAudioContext.onTimeUpdate(function(t) {
                        n.sliderValue = Math.ceil(e.innerAudioContext.currentTime), n.durations = Math.ceil(e.innerAudioContext.duration);
                    }), this.innerAudioContext.onEnded(function(t) {
                        n.pause(), n.isShowAudio = !0;
                    })) : this.innerAudioContext = t.createVideoContext("myAudio", this);
                },
                mounted: function() {
                    var t = Math.ceil(this.params.durition);
                    this.duration = (0, o.formatSeconds)(t);
                },
                methods: {
                    timeUpdate: function(t) {
                        this.sliderValue = Math.ceil(t.detail.currentTime), this.durations = Math.ceil(t.detail.duration);
                    },
                    sliderChange: function(t) {
                        this.innerAudioContext.seek(Math.ceil(t.detail.value));
                    },
                    touchAudio: function(t) {
                        this.isShowAudio ? this.play() : this.pause(), this.isShowAudio = !this.isShowAudio;
                    },
                    onEnd: function() {
                        this.pause(), this.isShowAudio = !0, this.$emit("onEnd", datas);
                    },
                    play: function() {
                        var t = this;
                        this.innerAudioContext.src = this.params.src, this.$nextTick(function() {
                            setTimeout(function() {
                                t.innerAudioContext.play();
                            }, 200);
                        }), this.$emit("onPlay", "");
                    },
                    pause: function() {
                        this.innerAudioContext.pause(), this.$emit("onPause", "");
                    },
                    onError: function(t) {
                        console.log("播放错误", t);
                    },
                    loadedmetadata: function() {},
                    sliderChanging: function() {}
                }
            };
            e.default = c;
        }).call(this, n("543d").default);
    },
    "53a1": function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    b3fb: function(t, e, n) {
        var i = n("04cf");
        n.n(i).a;
    },
    d35a: function(t, e, n) {
        n.r(e);
        var i = n("3e76"), o = n.n(i);
        for (var r in i) "default" !== r && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(r);
        e.default = o.a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/kp-voice/index-create-component", {
    "components/kp-voice/index-create-component": function(t, e, n) {
        n("543d").createComponent(n("1cbd"));
    }
}, [ [ "components/kp-voice/index-create-component" ] ] ]);